@extends('dashboard.base')

@section('content')
<div class="card-header"><a href="{{route('admin.goods.create')}}" class="btn btn-square  btn-info active">添加用户</a></div>
<table class="table table-responsive-sm">
      <thead>
        <tr>
          <th>用户名</th>
          <th>email</th>
          <th>创建时间</th>
          <th>订单数量</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
      	@foreach($datas as $v)
        <tr>
        	<td>{{ $v->name }}</td>
        	<td>{{ $v->email }}</td>
        	<td>{{ $v->created_at }}</td>
        	<td></td>
        	<td>
        		<a class="btn btn-info" href="{{ route('admin.users.edit', $v) }}">
        			编辑
					<!-- <svg class="c-icon">
					<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-description">编辑</use>
					</svg> -->
			    </a>
			    &nbsp;

			    <a class="btn btn-danger badge-danger" data-type="delete" href="javascript:;" data-url="{{ route('admin.users.destroy', $v)}}">
			    	删除
					<!-- <svg class="c-icon">
					<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-trash"></use>
					</svg> -->
			    </a>
            </td>
        </tr>
        @endforeach
      </tbody>
    </table>

    <script type="text/javascript">
      
    </script>
@endsection